package com.fc.entities

import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.ManyToOne
import javax.persistence.Table
import javax.validation.constraints.NotNull


@Entity
@Table(name = "Measurement")
class Measurement extends BaseEntity{
	@ManyToOne
	MeasurementType measurementType
	
	@Column(name="date")
	@NotNull
	Date date = new Date()
	
	@Column(name="value")
	@NotNull
	Float value
	
	@ManyToOne
	@NotNull
	User user
}
